package com.csun.dsms.service;

import com.csun.dsms.comment.core.support.IService;
import com.csun.dsms.model.domain.DsmsOpenUser;
import com.csun.dsms.model.domain.DsmsUser;
import com.csun.dsms.model.dto.wechat.BindMobileDto;
import com.csun.dsms.model.dto.wechat.WeChatLoginDto;

/**
 * @author chisj chisj@foxmail.com
 * @version 1.0.0
 * @date 2021-09-03 11:36
 * @description: TODO
 */
public interface DsmsOpenUserService extends IService<DsmsOpenUser> {

    /**
     * 授权微信登录
     *
     * @param weChatLoginDto    the wechat login dto
     * @param login the login user
     *
     * @return  the int.
     */
    Integer register(WeChatLoginDto weChatLoginDto, DsmsUser login);

    /**
     * 取消微信授权
     *
     * @param login
     *
     * @return  the int.
     */
    Integer unrRegister(DsmsUser login);

    /**
     * 微信登录
     *
     * @param weChatLoginDto    the wechat login dto
     *
     * @return  the login user
     */
    DsmsUser login(WeChatLoginDto weChatLoginDto);

    /**
     * 绑定手机号
     *
     * @param bindMobileDto the bind mobile dto
     *
     * @return  the int.
     */
    Integer bindMobile(BindMobileDto bindMobileDto);

}
